import http from '@/utils/http'

// 获取我的订单列表
export function getOrderList(params) {
  return http.get('/wxpub/api/orderv2', params)
}
// 删除订单
export function deleteOrder(params) {
  return http.post('/wxpub/api/order_delete', params)
}
// 获取购物车列表
export function getCarList(params) {
  return http.get('/wxpub/shop/cartv2', params)
}
// 删除购物车列表
export function cartDel(params) {
  return http.post('/wxpub/shop/cart_delv2', params)
}
// 获取优惠券
export function myCoupons(params) {
  return http.get('/wxpub/shopCoupons/my_coupons', params)
}
// 获取课程表
export function curriculumSchedule(params) {
  return http.get('/wxpub/api/course_update', params)
}
// 获取资讯文章
export function getArticleList(params) {
  return http.get('/wxpub/news/news_collection', params)
}
// 获取我的题库数据
export function getExamData(params) {
  return http.get('/wxpub/api/simulationv4', params)
}
// 获取智能题库（考点详情）
export function getAiExam(params) {
  return http.get('/storage/intell_exam/site_detail', params)
}

// 获取用户个人信息
export function getUserPersonalInfo(params) {
  return http.get('/wxpub/api/user_info_complete', params)
}
// 个人信息修改
export function modifyUserInfo(params) {
  return http.post('/wxpub/api/user_info_complete_v3', params)
}
// 我的课程学习时长
export function studyDuration(params) {
  return http.get('/wxpub/api/study_duration', params)
}
//收藏资讯文章
export function newsCollection(params) {
  return http.post('/wxpub/news/news_collection', params)
}
// 取消收藏资讯文章
export function cancelCollection(params) {
  return http.get('/wxpub/news/cancel_collection', params)
}
//获取我的课程列表
export function myCourseList(params) {
  return http.get('/wxpub/api/user_profession_coursev3', params)
}
// 获取最近浏览课程
export function userViewCourse(params) {
  return http.get('/wxpub/api/user_view_course', params)
}
// 获取最近直播课程
export function liveLibrary(params) {
  return http.get('/wxpub/api/my_live_library', params)
}
// 获取图片验证码
export function getCodeImg(params) {
  return http.post('/app/login/code_img', params)
}
// 获取短信验证码
export function smsCode(params) {
  return http.get('/app/user_cancellation/sms_code', params)
}
// 预约直播
export function subscribeLive(params) {
  return http.get('/wxpub/api/live_subscribe', params)
}
// 获取备考资料
export function testData(params) {
  return http.get('/wxpub/news/exam_data', params)
}
// 备考资料获取专业列表
export function examDataProfession(params) {
  return http.get('/newsapi/web/exam_data_profession', params)
}
// 题库统计
export function simulationStatistics(params) {
  return http.get('/wxpub/api/simulation_statistics', params)
}
// 题库排名统计
export function examSimulationRank(params) {
  return http.get('/wxpub/api/simulation_rank', params)
}
// 做题全部进度
export function examAllProgress(params) {
  return http.post('/storage/question/all_progress', params)
}
//错题本按时间排序
export function wrongTimeSort(params) {
  return http.get('/storage/question/wrong_v2', params)
}
// 错题本按目录
export function wrongChapterSort(params) {
  return http.get('/storage/question/wrong', params)
}
// 获取智能题库错题集，按目录
export function smartWrongChapterSort(params) {
  return http.get('/storage/smart/wrong', params)
}

// 收藏按目录
export function collectChapterSort(params) {
  return http.get('/storage/question/collect', params)
}
// 智能题库收藏按目录
export function smartCollectChapterSort(params) {
  return http.get('/storage/smart/collect', params)
}

// 收藏按时间
export function collectTimeSort(params) {
  return http.get('/storage/question/collect_v2', params)
}
// 删除收藏记录
export function deleteExamCollect(params) {
  return http.post('/storage/question/delete_collect', params)
}
// 删除错题
export function deleteWrong(params) {
  return http.post('/storage/question/delete_wrong', params)
}
// 检查用户是否有注销权限
export function checkStatus(params) {
  return http.get('/app/user_cancellation/check_status', params)
}
//注销账号短信验证码检测
export function cancelSmsVerify(params) {
  return http.get('/app/user_cancellation/sms_verify', params)
}
// 提交用户注销申请
export function cancellationAdd(params) {
  return http.post('/app/user_cancellation/cancellation_add', params)
}
//我的课程 获取所有行业、专业、科目(我的课程需要实操相关信息)
export function getCourseAllSubject() {
  return http.get('/wxpub/api/subject_all_v4', {
    subject_type: '1',
    is_with_practice: '1'
  })
}
// 获取绑定微信二维码
export function getBanWxCode(params) {
  return http.get('/wxpub/api/user_bind_wx', params)
}
// 获取扫描二维码后微信绑定状态
export function getBanWxStatus(params) {
  return http.get('/wxpub/api/wx_bind_info', params)
}
// 更改购物车数量
export function changeProcNumber(params) {
  return http.post('/wxpub/shop/change_numv2', params)
}
// 获取课程包中专页数据
export function courseMusterMap(params) {
  return http.get('/wxpub/course/course_package', params)
}
// 获取个人中心广告
export function personalBanner(params) {
  return http.get('/webapi/api/personal_center_banner', params)
}
// 实操首页推荐
export function scRecommend(params) {
  return http.get('/wxpub/shicao/recommend', params)
}
// 获取我的课程进度
export function myCourseProgress(params) {
  return http.get('/storage/video/pull_progress_all', params)
}
// 获取后台配置的需要展示到前端的专业目录
export function getShowProfessions(params) {
  return http.get('/wxpub/news/show_profession', params)
}

// 获取答疑详情
export function getDayiDetail(params) {
  return http.get('/wxpub/solution/course_question_list', params)
}

// 获取签署信息
export function signAgreementCourseList(params) {
  return http.get('/wxpub/api/agreement_sign', params)
}

// 需要签署的协议
export function needSignAgreementList(params) {
  return http.get('/wxpub/api/sign_arr', params)
}
//签署协议
export function signAgreementResult(params) {
  return http.post('/wxpub/api/agreement_sign', params)
}

// 设置做题正确次数
export function postQuestionWrongConfig(params) {
  return http.post('wxpub/api_base/question_wrong_config', params)
}

// 获取做题正确次数
export function getQuestionWrongConfig(params) {
  return http.get('wxpub/api_base/question_wrong_config', params)
}

// 获取用户开票记录
export function getUserInvoiceRecords(params) {
  return http.get('/wxpub/invoice/user_invoice_records', params)
}

// 获取用户可开票订单列表
export function getUserRecords(params) {
  return http.get('/wxpub/invoice/user_orders', params)
}

// 提交开票信息
export function getSubmitInvoice(params) {
  return http.post('/wxpub/invoice/submit_invoice', params)
}
//重复激活过期课程
export function repeatFreeActivation(params) {
  return http.post('/wxpub/code_activation/repeat_free_activation', params)
}
